package com.xkcyy.study.spring.other;

import com.xkcyy.study.spring.SpringBootStudyApplication;
import com.xkcyy.study.spring.s01_transaction.TransService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

/**
 * S_02_SpringTransaction
 *
 * @author yuand
 * @date 2021/5/25
 **/
@SpringBootTest(classes = {SpringBootStudyApplication.class})
@Component
public class S_02_SpringTransaction {



    @Autowired
    TransService transactionalTest;

    @Test
    void test(){
        transactionalTest.testTrans();
    }
}
